/* eslint-disable no-unused-vars */
import React from "react";
import Dictionary from "biz-component/components/dictionary";

export enum ApproveStatus {
  Processing = "1",
  Approve = "2",
  Refused = "3",
}

// 审核状态选项
export const ApproveStatusOptions = [
  {
    value: ApproveStatus.Processing,
    label: "审核中",
    text: {
      style: {
        color: "blue",
      },
    },
    badge: {
      status: "processing",
    },
    tag: {
      alias: "审核中",
      color: "orange",
    },
  },
  {
    value: ApproveStatus.Approve,
    label: "审核通过",
    text: {
      style: {
        color: "green",
      },
    },
    badge: {
      status: "success",
    },
    tag: {
      color: "green",
    },
  },
  {
    value: ApproveStatus.Refused,
    label: "审核不通过",
    text: {
      style: {
        color: "red",
      },
    },
    badge: {
      status: "error",
    },
    tag: {
      color: "red",
    },
    custom: {
      color: "purple",
    },
  },
];

export default () => {
  return (
    <Dictionary
      valueEnum={ApproveStatusOptions}
      value={ApproveStatus.Refused}
      type="tag"
    />
  );
};
